package com.jcp.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.jcp.entity.Parment;
import com.jcp.service.ParmentService;
import com.jcp.util.LayuiData;

@RestController
public class ParmentController {
	
	@Autowired
	private ParmentService parmentService;
	
	@RequestMapping(value="selParmentMessage",produces="application/json;charset=utf-8")
	public LayuiData<Parment> selParmentMessage(int page,int limit,@RequestParam(defaultValue="")String paymentId){
		
		LayuiData<Parment> layuiData=parmentService.selParmentMessageByPage(page, limit, paymentId);
		
		return layuiData;
	}
	
	

}
